<template>
	<view class="container">
		<rich-text :nodes="htmlContent"></rich-text>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				htmlContent: '<p>默认测试内容</p>'
			}
		},
		onLoad() {
			const eventChannel = this.getOpenerEventChannel()
			        eventChannel.on('acceptDataFromOpenerPage', (data) => {
			            this.htmlContent = data.data // 存入 data 供模板使用
						console.log(this.htmlContent)
			        })
		},
		methods: {

		}
	}
</script>

<style>
</style>